package com.sunshineedu.sunshineeducationspring.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "SPRING_SESSION")
public class SpringSession {
    @Id
    @Column(name = "SESSION_ID", nullable = false, length = 36)
    private String sessionId;

    @Column(name = "SESSION_ATTRIBUTES")
    private byte[] sessionAttributes;

    @Column(name = "LAST_REQUEST")
    private Long lastRequest;

    @Column(name = "EXPIRY_TIME")
    private Long expiryTime;

}